package com.inno.life;

import com.inno.auth.api.UserFeignService;
import com.inno.life.domain.utils.ApplicationContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author sean
 */
@SpringBootApplication
@ComponentScan("com.inno.life.**")
@MapperScan("com.inno.life.infra.basic.mapper")
@EnableFeignClients(clients = {UserFeignService.class})
@EnableAspectJAutoProxy
public class LifeApplication {
    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(LifeApplication.class, args);
        ApplicationContextUtil.setApplicationContext(context);
        System.out.println("LifeApplication.main.running....");
    }
}
